package com.broadengate.service.impl;

import java.util.List;

import com.broadengate.dao.AdminDao;
import com.broadengate.model.Atminfo;
import com.broadengate.model.Bank;
import com.broadengate.model.Card;
import com.broadengate.model.Customer;
import com.broadengate.model.Deposit;
import com.broadengate.model.Transfer;
import com.broadengate.model.Withdraw;
import com.broadengate.service.AdminService;

public class AdminServiceImpl implements AdminService {
	
	private AdminDao adminDao;
	
	public boolean login(String adminName, String password) {
		return adminDao.login(adminName, password);
	}
	public List listAllOperation(){
		return adminDao.listAllOperation();
	}
	public List<Deposit> depositList(){
		return adminDao.DepositList();
	}
	public List<Withdraw> withdrawList(){
		return adminDao.WithdrawList();
	}
	public List<Transfer> trasferList(){
		return adminDao.TrasferList();
	}
	public Atminfo findAtminfo(){
		return adminDao.findAtminfo();
	}
	public void updateAtminfo(Atminfo atminfo){
		adminDao.updateAtminfo(atminfo);
	}
	public void openAccount(Customer customer) {
        adminDao.openAccount(customer);
	}	
	public void setPoundage(Atminfo atminfo){
		adminDao.setPoundage(atminfo);
	}
	public void cancelAccount(String cardID){
		
		adminDao.cancelAccount(cardID);
	}
	
	
	public AdminDao getAdminDao() {
		return adminDao;
	}

	public void setAdminDao(AdminDao adminDao) {
		this.adminDao = adminDao;
	}

}
